﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true"
    CodeBehind="List.aspx.cs" Inherits="Kym.Web.Views.Contacts.List" %>

<%@ Import Namespace="Kym.Web.Controllers" %>
<%@ Import Namespace="MvcContrib.UI.Html.Grid" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div style="color: Red">
        <%= TempData["Error"] %>
    </div>
    <%
        Html.Grid(ViewData.Model, b =>
                                              {
                                                  b.For(m => m.Name);
                                                  b.For(m => Html.ActionLink<ContactsController>(c => c.Edit(m.ID), "Edit")).DoNotEncode();
                                                  b.For(m => Html.ActionLink<ContactsController>(c => c.Delete(m.ID), "Delete")).DoNotEncode();
                                              }); %>
</asp:Content>
